<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>KSYMultiTrack Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">KSYMediaEditorKit </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">Kingsoft</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	
	<optgroup label="Properties">
		
		<option value="//api/name/bStereo">bStereo</option>
		
		<option value="//api/name/status">status</option>
		
	</optgroup>
	

	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/cancelComposing">- cancelComposing</option>
		
		<option value="//api/name/jointAssetsWithInfoList:vbps:abps:resolution:videoFPS:error:progress:finish:">- jointAssetsWithInfoList:vbps:abps:resolution:videoFPS:error:progress:finish:</option>
		
		<option value="//api/name/pauseComposing">- pauseComposing</option>
		
		<option value="//api/name/resumeComposing">- resumeComposing</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">KSYMultiTrack Class Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Inherits from</th>
	<td>NSObject</td>
</tr><tr>
	<th>Declared in</th>
	<td>KSYMultiTrack.h</td>
</tr>
						</tbody></table></div>
					

                    

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/bStereo" title="bStereo"></a>
	<h3 class="method-title"><code><a href="#//api/name/bStereo">&nbsp;&nbsp;bStereo</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Indicates the output audioTrack&rsquo;s sound type.</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) BOOL bStereo</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>Default is NO, which means mono is default output sound type</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMultiTrack.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/status" title="status"></a>
	<h3 class="method-title"><code><a href="#//api/name/status">&nbsp;&nbsp;status</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Indicates current multiTrack‘s status</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) KSYMTStatus status</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>Default is KSYMTStatus_Idle</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMultiTrack.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/jointAssetsWithInfoList:vbps:abps:resolution:videoFPS:error:progress:finish:" title="jointAssetsWithInfoList:vbps:abps:resolution:videoFPS:error:progress:finish:"></a>
	<h3 class="method-title"><code><a href="#//api/name/jointAssetsWithInfoList:vbps:abps:resolution:videoFPS:error:progress:finish:">&ndash;&nbsp;jointAssetsWithInfoList:vbps:abps:resolution:videoFPS:error:progress:finish:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>多画布合成</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)jointAssetsWithInfoList:(NSArray&lt;KSYMEAssetInfo*&gt; *)<em>assetInfoList</em> vbps:(NSInteger)<em>vbps</em> abps:(NSInteger)<em>abps</em> resolution:(CGSize)<em>resolution</em> videoFPS:(NSInteger)<em>fps</em> error:(void ( ^ ) ( NSError *error ))<em>error</em> progress:(void ( ^ ) ( float progress ))<em>progress</em> finish:(void ( ^ ) ( NSURL *url ))<em>finish</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>assetInfoList</code></th>
						<td><p>video/audio/img资源及配置参数</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>vbps</code></th>
						<td><p>视频码率</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>abps</code></th>
						<td><p>音频码率</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>resolution</code></th>
						<td><p>分辨率</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>error</code></th>
						<td><p>错误回调</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>progress</code></th>
						<td><p>进度回调</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>finish</code></th>
						<td><p>完成回调</p>

<p>@discussion
下图示例为3个视频基于多画布进行视频合成，输出 400 * 600 分辨率的视频</p>

<p>|─ ─ ─ ─ 400 ─ ─ ─ ─|
┌─────────┬─────────┐  ─
│         │         │  |
│         │ canvas1 │ 300
│         │         │  |
│         │         │  |
│ canvas0 ├─────────┤  ─
│         │         │  |
│         │         │ 300
│         │ canvas2 │  |
│         │         │  |
└─────────┴─────────┘  ─
|── 200 ──|── 200 ──|</p>

<p>输出视频时长会与coverVideos 中时长最长的视频保持一致
coverVideos(包含3个video)中的视频将会按 coverRegions(包含3个region)中对应的 region 以'填充'模式进行绘制</p>

<p>canvas0 在 (0,0,200,600) 的区域绘制，对应region为 (0, 0, 0.5, 1)
canvas1 在 (200,0,200,300) 的区域绘制，对应region为 (0.5, 0, 0.5, 0.5)
canvas2 在 (200,300,200,300) 的区域绘制，对应region为 (0.5, 0.5, 0.5, 0.5)</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMultiTrack.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/pauseComposing" title="pauseComposing"></a>
	<h3 class="method-title"><code><a href="#//api/name/pauseComposing">&ndash;&nbsp;pauseComposing</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Pause composing if the multiTrack manager is composing</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)pauseComposing</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMultiTrack.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/resumeComposing" title="resumeComposing"></a>
	<h3 class="method-title"><code><a href="#//api/name/resumeComposing">&ndash;&nbsp;resumeComposing</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Resume composing if the multiTrack manager is composing_paused</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)resumeComposing</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMultiTrack.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/cancelComposing" title="cancelComposing"></a>
	<h3 class="method-title"><code><a href="#//api/name/cancelComposing">&ndash;&nbsp;cancelComposing</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>Cancel current composing task</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)cancelComposing</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>Finish block will be invoked after cancelling current task</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMultiTrack.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2018 Kingsoft. All rights reserved. Updated: 2018-02-09</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>